<?php if (!defined('THINK_PATH')) exit();?> <!DOCTYPE html>
 <html>
 <head>
 	<title>信息无限分类管理</title>
 	<meta charset = "utf8">
 </head>
 <body>
 	<!DOCTYPE html>
 <html>
 <head>
 	<title>信息无限分类管理</title>
 	<meta charset = "utf8">
 </head>
 <body>
 	<center>
 		<h3>信息无限分类管理</h3>
 		<a href="<?php echo U('Home/Index/index' );?>">查看分类</a>&nbsp;&nbsp;

 		<a href="<?php echo U('Home/Add/add', array( 'id' => 15 , 'name' => '根类' , 'pid' => 0 , 'path' => '0,'));?>">添加分类</a>&nbsp;&nbsp;
 		<hr />
 	</center>
 </body>
 </html> 

 	<center>
 		<table width="500" border="0">
 			<tr>
 				<td>
 				路径
 				<?php if(is_array($roots)): foreach($roots as $key=>$root): ?>>> <a href="<?php echo U('Home/Index/index2' , $root);?>"><?php echo ($root["name"]); ?></a><?php endforeach; endif; ?>
 				</td>
 			</tr>
 		</table>
 		<table width="500" border="1">
 			<tr bgcolor="#cccccc">
	 			<td>id</td>
	 			<td>类名</td>
	 			<td>父id</td>
	 			<td>路径</td>
	 			<td>操作</td>
 			</tr>
 			<?php if(is_array($rows)): foreach($rows as $key=>$row): ?><tr>
	 				<td><?php echo ($row["id"]); ?></td>
	 				<td><?php echo ($row["name"]); ?></td>
	 				<td><?php echo ($row["pid"]); ?></td>
	 				<td><?php echo ($row["path"]); ?></td>
	 				<td>
	 				<a href="<?php echo U('Home/Index/index2' , $row);?>">查看子类</a>
	 				&nbsp;&nbsp;
	 				<a href="<?php echo U('Home/Add/add' , $row);?>">添加子类</a>
	 				&nbsp;&nbsp;
	 				<a href="<?php echo U('Home/Del/delDo' , $row);?>">删除</a>
	 				</td>
	 			</tr><?php endforeach; endif; ?>
 		</table>

 	</center>
 </body>
 </html>